package uk.ac.ebi.bioinvindex.model.impl.term;

import uk.ac.ebi.bioinvindex.model.impl.processing.ProtocolApplication;

import javax.persistence.Entity;
import javax.persistence.DiscriminatorValue;
import javax.persistence.ManyToOne;
import javax.persistence.JoinColumn;

/**
 * User: Nataliya Sklyar (nsklyar@ebi.ac.uk)
 * Date: Jan 2, 2008
 */
@Entity
@DiscriminatorValue( "ParameterValue" )
public class ParameterValue extends PropertyValueImpl<Parameter>{

	private ProtocolApplication protocolApplication;

	protected ParameterValue() {
	}

	public ParameterValue(Parameter type) {
		super(type);
	}

	@ManyToOne( targetEntity = uk.ac.ebi.bioinvindex.model.impl.processing.ProtocolApplication.class)
	@JoinColumn(name = "PROTOCOL_APP_ID", nullable = true )
	public ProtocolApplication getProtocolApplication() {
		return protocolApplication;
	}

	public void setProtocolApplication(ProtocolApplication protocolApplication) {
		this.protocolApplication = protocolApplication;
	}
}
